package main

import "fmt"

type Student struct {
	Name string
	Age int
	Score int
	sex int
}

func (p integer)print()  {
	fmt.Println("p is ",p)
}

func (p *integer)set (b integer)  {
	*p = b
}

func (p *Student)init (name string,age int,score int)  {
	(*p).Name = name
	p.Age = age
	p.Score = score
	fmt.Println(p)
}

func (p Student)get() Student  {
	return p
}

type integer int

func main()  {
	var stu Student

	stu.init("stu",10,20)

	stu1 := stu.get()
	fmt.Println(stu1)

	var a integer
	a = 100
	a.print()

	a.set(1000)
	a.print()
}
